package com.leyou.item.api;

import com.leyou.item.pojo.Brand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Date 2018/12/22  18:20
 * @Author JIE
 */
public interface BrandApi {

    /**
     * 根据id查询品牌
     * @param id
     * @return
     */
    @GetMapping("/brand/{id}")
   Brand queryBrandByid(@PathVariable("id")Long id);

    @GetMapping("/brand/brands")
    List<Brand> queryBrandByIds(@RequestParam("ids") List<Long> ids);
}
